﻿// Copyright (c)  MOKEYISH. All rights reserved.
// Licensed under the MIT License, See License.txt in the project root for license information.

namespace NSQL.Expressions.Functions
{
    /// <summary>
    /// The Extract() function extracts parts from a date
    /// </summary>
    public interface IExtractFunction : INumericFunction
    {
        IValueExpression DateTime { get; set; }
        ExtractType Type { get; set; }
    }


    public enum ExtractType
    {
        Year,
        Month,
        Week,
        Day,
        Hour,
        Minute,
        Second,
//        MilliSecond,

    }
}